<?php 

define("UNDERKLEO", true);
require_once '../../../../conf/kleoconfig.php';
$criteria = $_POST['tags']; 
$query = $kleocore->query("SELECT * FROM ".KLEO_TABLE_PREFIX."tags WHERE MATCH(tagname) AGAINST ('%$criteria%') OR tagname LIKE '%$criteria%' ORDER BY tagname ASC");
?>
<ul>
<?php
while($row = $kleocore->fetch_array($query)):
?>
<li><?=$row['tagname'];?></li>
<?php
endwhile;
?>
<li><?=$_POST['used'];?></li>
</ul>